//---------------------------------------------------------------------------

#ifndef TMeasurementH
#define TMeasurementH
#include <vector.h>
#include <ComCtrls.hpp>
#include "TIO.h"
//---------------------------------------------------------------------------
//enum eMeasurementIndex { MetricMeasurement = 0, BritishMeasurement };
//enum eMeasurementType {uLength, uSpeed, uGrade, uWeight};
#define eMeasurementIndex eMeasurement

class TMeasurement
{
public:
	AnsiString ChineseName;
	eMeasurementIndex Index;
	double LengthRate, SpeedRate, GradeRate, WeightRate;
   AnsiString LengthUnitCaption, SpeedUnitCaption, GradeUnitCaption, WeightUnitCaption;
};

class TMeasurementList : public vector<TMeasurement>
{
public:
	__fastcall TMeasurementList();
	double __fastcall GetMeasurementRate(const eMeasurementIndex Index, const eMeasurementType Type);
	TMeasurement & __fastcall GetMeasurement(const eMeasurementIndex Index);
};
#endif
